package org.eenie.commonlib.ui.arch

import android.content.Context
import androidx.lifecycle.LifecycleCoroutineScope
import co.zsmb.rainbowcake.withIOContext
import com.rxlife.coroutine.RxLifeScope
import kotlinx.coroutines.delay
import rxhttp.awaitString
import rxhttp.wrapper.param.RxHttp
import javax.inject.Inject

class ExamplePresenter @Inject constructor() {

    suspend fun getUserInfo(): String = withIOContext {
        RxHttp.get("/article/list/0/json").awaitString()
    }

}